<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>

<%@page import="com.jing.system.comm.contants.WeiboCons"%>
<jsp:include page="/WEB-INF/view/comm/headertop.jsp"></jsp:include>
<div class="header">
	<div class="headerleft">
		<ul>
			<li><img alt="妞妞助手" src="${pageContext.request.contextPath}/resources/images/logo.png" /></li>
			<c:if test="${userInfo != null}">
			<li>
				<p>
					<!-- 记录是否开启了互粉 -->
					<input id="userInfoIsopenmp" type="hidden" value="${userInfo.isopenmp}" />
					<label class="title">推荐功能:</label>&nbsp;&nbsp;
					<input type="button" id="openMp" class="btn" title="开启后, 您可以自动增加使用了该系统的用户为互粉粉丝!" value="开启互粉"/>
					<input type="button" id="closeMp" class="btn" title="关闭后, 您不可以自动增加使用了该系统的用户为互粉粉丝!" value="关闭互粉"/>
					&nbsp;
					<input type="button" id="joinMp" class="btn" title="点击后, 系统将抽取最近几天登录的用户为您的互粉粉丝, 最高限制为${weibo_mp_max_num}个!" value="参与互粉"/>
					&nbsp;
					<input type="button" id="tagJoinMp" class="btn" title="点击后, 系统将根据您选的标签为您的互粉, 最高限制为${weibo_mp_max_num}个!" value="标签互粉"/>
				</p>
			</li>
			</c:if>
		</ul>
	</div>
	<div class="headerright">
		<c:choose>
			<c:when test="${userInfo != null}">
				<div class="childleft"><img src="${userInfo.img}" width="70" height="70" /></div>
				<div class="childright">
					<p><a href="http://weibo.com/u/${userInfo.username}" target="_banlk">${userInfo.nickname}</a></p>
					<ul>
						<li>
							<a href="http://weibo.com/${userInfo.username}/follow" target="_banlk">关注<br/>${userInfo.attentionnum}</a>
						</li>
						<li>
							<a href="http://weibo.com/${userInfo.username}/fans" target="_banlk">粉丝<br/>${userInfo.fansnum}</a>
						</li>
						<li>
							<a href="http://weibo.com/${userInfo.username}/profile" target="_banlk">微博<br />${userInfo.weibonum}</a>
						</li>
					</ul>
				</div>
			</c:when>
			<c:otherwise>
				<a href="https://api.weibo.com/oauth2/authorize?client_id=${client_ID}&response&response_type=code&redirect_uri=${redirect_URI}&forcelogin=${forcelogin}"><img src="resources/images/weibo/weiboBut.png" /></a>
			</c:otherwise>
		</c:choose>
	</div>
	<br clear="all"/>
</div>
<div class="menu">
	<ul class="operate" id="operateMenu">
		<li><a id="mainPb" href="mainPb.shtml">互粉吧</a></li>
		<li><a id="mainRanking" href="mainRanking.shtml">榜上有名</a></li>
		<li><a id="mainInfo" href="mainInfo.shtml">内涵微博</a></li>
		<li><a id="main" href="main.shtml">粉丝管理</a></li>
		<li><a id="mainCenter" href="mainCenter.shtml">个人中心</a></li>
		<c:if test="${userInfo.isadmin == 1}">
		<li><a id="mainAdmin" href="mainAdmin.shtml">后台管理</a></li>
		</c:if>
	</ul>
	<div class="operateinfo">
		推荐互粉群[&nbsp;<a href="http://q.weibo.com/1561194" target="_banlk">妞妞乐园互粉群</a>&nbsp;]
	</div>
	<br clear="all"/>
</div>